import Vue from 'vue';
Vue.directive('fix', {
	bind: function(el, binding) {
		el.style.position = 'fixed'
		var s = (binding.arg == 'left' ? 'left' : 'top')
		el.style[s] = binding.value + 'px'
	}
})
